<?php include($folder.'/layouts/templates/backend/header.tpl') ?>
<?php
$master['action'] = null;
$master['attributes'] = null;
$master['pageTitle'] = 'Tájékoztatók';
$master['toolbarItems'] = array(
	'<input type="button" value="Vissza" class="button" onclick="javascript:window.location.href=\''.$prefix.'/adminisztracio\'" />'
);?>
<?php include($folder.'/layouts/templates/backend/middle.tpl') ?>
<?php if (!empty($_SESSION['id'])): ?>
<?php $content['itemsPerPage'] = 18 ?>
<?php echo extendedTable(array(
	'header' => paginator(array(
		'subId' => 'paginator1',
		'id' => 'main',
		'selectCountMethod' => 'adatlapok_select_count',
		'itemsPerPage' => $content['itemsPerPage'],
		'itemsPerPageAll' => array(9,18,36,72))),
	'body' => table(array(
		'id' => 'main',
		'selectMethod' => 'adatlapok_select',
		'block' => 0,
		'itemsPerPage' => $content['itemsPerPage'],
		'sortColumn' => 'title',
		'sortDirection' => 'asc',
		'columns' => array(
			array('title'=>'név', 'template'=>'{title}', 'width'=>'180px', 'align'=>'left', 'sortColumn'=>'title'),
			array('title'=>'művelet', 
				'template'=>
				'<a href="'.$prefix.'/adminisztracio/adatlapok/modositas?id={id}">módosítás</a>', 
				'width'=>'180px', 
				'align'=>'center', 'sortColumn'=>'')
		))),
	'footer' => paginator(array(
		'subId' => 'paginator2',
		'isFirst' => false,
		'id' => 'main',
		'selectCountMethod' => 'adatlapok_select_count',
		'itemsPerPage' => $content['itemsPerPage'],
		'itemsPerPageAll' => array(9,18,36,72))))) ?>
<?php endif; ?>
<?php include($folder.'/layouts/templates/backend/footer.tpl') ?>